<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="include :: header"></head>
<style>
    table tr th, table tr td {
        border-color: #000000;
        text-align: center;
        vertical-align: middle;
        font-size: 16px;
        line-height: 30px
    }

    table tr td input {
        border: none;
        width: 100%;
        height: 30px;
        outline: none;
        text-align: center;
    }

    table tr td textarea {
        border: none;
        width: 100%;
        height: 30px;
        outline: none;
        resize: none;
        overflow-y: hidden;
    }

    .changeCursorIco {
        cursor: pointer;
    }
    .select2{
        margin: 0;
    }

    /**select2 去边框 */
    .selection .select2-selection--single{
        border: none;
    }
    /**select2 下拉菜单中内容居中 */
    .select2-results__option{
        text-align: center;
    }
    /**select2 禁用背景色透明 */
    .select2-container--default.select2-container--disabled .select2-selection--single{
        background: transparent;
    }
    /**select2 去掉三角符 */
    .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-color: transparent transparent transparent transparent;
        border-style: solid;
        border-width: 5px 4px 0 4px;
        height: 0;
        left: 50%;
        margin-left: -4px;
        margin-top: -2px;
        position: absolute;
        top: 50%;
        width: 0;
    }
</style>
<body class="hold-transition skin-yellow sidebar-mini">
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box" style="border: none;box-shadow: none;">
                <div class="box-body">
                    <ul class="pull-right" style="list-style: none;margin-right:50px;margin-bottom: 0px;">
                        <li><a th:if="${mode} eq 1" shiro:hasPermission="pro:facPlan:edit" th:href="@{'/task/gotoFactoryPlanListPage/'+${prodOrd.prodNo}}" target="_blank" class="btn btn-info" style="margin-bottom:5px;">厂级计划编辑与反馈</a></li>
                        <li><a th:if="${mode} eq 1" shiro:hasPermission="pro:otherRet:edit" th:href="@{'/task/gotoCommonPlanListPage/'+${prodOrd.prodNo}}" target="_blank" class="btn btn-warning">其他类计划反馈</a></li>
                    </ul>
                    <div class="col-md-10 col-md-offset-1" style="padding-top: 25px;">
                        <form id="dataForm">
                            <table width="100%" border="1" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td colspan="7"
                                        style="border-left: none;border-right: none;font-size: 20px;height: 35px">
                                        <B th:text="${tableTitle}"></B>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 100px;">项目编号</td>
                                    <td style="width:200px;" th:text="${prodOrd.prodNo}"></td>
                                    <td style="width:200px;">项目名称</td>
                                    <td  th:text="${prodOrd.prodName}"></td>
                                    <td style="width:200px;">数量</td>
                                    <td style="width:400px;" th:text="${prodOrd.prodNum}" colspan="2" ></td>
                                </tr>
                                <tr>
                                    <td>安装地点</td>
                                    <td th:text="${prodOrd.insSite}"></td>
                                    <td>需方</td>
                                    <td th:text="${prodOrd.customer}" ></td>
                                    <td>交货时间</td>
                                    <td th:text="${#dates.format(prodOrd.prodDelDat, 'yyyy-MM-dd')}"  colspan="2"></td>
                                </tr>
                                <tr>
                                    <td colspan="7"
                                        style="border-left: none;border-right: none;font-size: 20px;height: 35px">
                                        <B>项目排产</B>
                                    </td>
                                </tr>
                                <tr>
                                    <td>序号</td>
                                    <td>任务名称</td>
                                    <td>计划开始时间</td>
                                    <td style="width:250px;">计划完成时间</td>
                                    <td style="width:250px;">所属部门</td>
                                    <td style="width:250px;">派工工时</td>
                                    <td style="width:400px;">备注</td>
                                </tr>
                                <tr th:if="${prodPlaDetList.size() > 0 }" th:id="${item.prpdCod}" th:each="item:${prodPlaDetList}">
                                    <td th:text="${itemStat.count}"></td>
                                    <td>
                                        <input name="prpdNam" type="text" autocomplete="off"
                                               th:value="${item.prpdNam}" readonly="readonly"/>
                                    </td>
                                    <td>
                                        <input name="prpdPlaStaDat" type="text"
                                               readonly="readonly" th:value="${#dates.format(item.prpdPlaStaDat, 'yyyy-MM-dd')}"/>
                                    </td>
                                    <td>
                                        <input name="prpdPlaEndDat" type="text"
                                               readonly="readonly" th:value="${#dates.format(item.prpdPlaEndDat, 'yyyy-MM-dd')}"/>
                                    </td>
                                    <td>
                                        <input name="prpdDep" type="text"
                                               th:each="dept : ${#strings.listSplit(item.prpdDepId,',')}"
                                               th:value="${dept}" readonly="readonly"/>
                                    </td>
                                    <td>
                                        <input name="prpdPlaEndDat" type="text"
                                               readonly="readonly" th:value="${item.prpdAssWorHours}"/>
                                    </td>
                                    <td>
                                        <textarea readonly="readonly"  name="prpdRem" th:text="${#strings.defaultString(item.prpdRem,'')}" maxlength="255"></textarea>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<div th:include="include :: footer"></div>
<script th:inline="javascript">

</script>
</body>
</html>